﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PlusAssistance.BL.Dtos
{
    public class BLResponse<TValue> : IBLResponse
    {
        public BLResponse()
        {
            Warnings = new List<string>();
            Errors = new List<string>();
        }
        public TValue Data { get; set; }
        public List<string> Warnings { get; set; }
        public List<string> Errors { get; set; }
        public bool Success
        {
            get { return !Errors.Any(); }
        }
    }
}
